package com.itheima.hmshopping.dubbo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.hmshopping.entity.SmsFlashPromotion;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface SmsFlashPromotionMapper extends BaseMapper<SmsFlashPromotion> {
    /**
     * 修改上下线状态
     * @param id
     * @param status
     */
    @Update("update sms_flash_promotion set status=#{status} where id=#{id}")
    void updateStatus(@Param("id") Long id, @Param("status") Integer status);
}
